/*******************************************************************************
 * Copyright (c) 2011 H�yskolen i Bergen
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * �yvind Bech and Dag Viggo Lok�en - DPF Editor
*******************************************************************************/
package no.hib.dpf.editor.parts;


/**
 * Works with constraints that go across opposite arrows.
 */
public abstract class OppositeArrowsConstraintEditPart extends DConstraintEditPart {

	public OppositeArrowsConstraintEditPart() {
		super();
	}

//	/**
//	 * Produces a ConnectionAnchor for either the source or target end of this
//	 * constraint. The source (or target) needs to be an instance of 
//	 * <code>ArrowEditPart</code>,
//	 * @param supplier the source or target of this edit part.
//	 * @param isSource true if supplier is source, false if not.
//	 * @return A new ConnectionAnchor.
//	 */
//	@Override
//	protected ConnectionAnchor getConnectionAnchor(EditPart supplier) {
//		// Constructing the anchor with "isSource" ensures that the target end
//		// of one arrow is used as well as the source end of the opposite arrow
//		// (the negation is to make the anchor appear on the right side)
//		if ((supplier == null)  || (!(supplier instanceof DArrowEditPart))) {
//			return null;
//		}
//		return new OppositeArrowsConstraintAnchor((PolylineConnection)((DArrowEditPart)supplier).getFigure());
//	}
}
